package no.uib.kwikktaim.gui.actionlisteners;

import java.awt.event.MouseEvent;
import java.awt.event.MouseListener;

import no.uib.kwikktaim.gui.MainWindow;
import no.uib.kwikktaim.utils.PlayerOptions;

public class SliderEvent implements MouseListener {
	MainWindow mw;

	public SliderEvent(MainWindow mw) {
		this.mw = mw;
	}

	@Override
	public void mouseClicked(MouseEvent e) {

	}

	@Override
	public void mouseEntered(MouseEvent e) {

	}

	@Override
	public void mouseExited(MouseEvent e) {

	}

	@Override
	public void mousePressed(MouseEvent e) {
		mw.setPlaypause(PlayerOptions.PAUSE);
	}

	@Override
	public void mouseReleased(MouseEvent e) {
		mw.setPlaypause(PlayerOptions.PLAY);
	}

}
